using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace OBUCare.Core.Models
{
    public partial class DICT_TYPE
    {
        public DICT_TYPE()
        {
            this.DICT_TYPE_VALUE = new List<DICT_TYPE_VALUE>();
        }

        [DisplayName("编号")]
        [ScaffoldColumn(false)]
        public int ID { get; set; }


        [DisplayName("标题")]
        [Required(ErrorMessage = "*请输入标题")]
        public string TYPE_NAME { get; set; }


        [DisplayName("是否可编辑")]
        public bool IS_EDITED { get; set; }


        [DisplayName("编码")]
        [Required(ErrorMessage = "*请输入编码")]
        public string TYPE_CODE { get; set; }


        [DisplayName("排序")]
        [Required(ErrorMessage = "*请输入排序")]
        public int DICT_INDEX { get; set; }

        [DisplayName("描述")]
        public string REMARK { get; set; }
        public virtual ICollection<DICT_TYPE_VALUE> DICT_TYPE_VALUE { get; set; }
    }
}
